var CocosMagic = {

    components : {},

    registerComponent : function (tagName,option) {
        var _option = {};
        if(option.element){
            _option.nodeBuilder = option.element
        }
        if(option.attr){
            _option.attributesBuilder = option.attr;
        }
        CocosMagic.components[tagName] = _option;

        // CocosMagic.components[tagName] = {
        //     nodeBuilder : nodeBuilder,
        //     attributesBuilder : attributesBuilder
        // }
    },
    load : function () {

    }

}